<nav class="nav nav-tabs nav-stacked mb-3">

    <a class="nav-link {{ active_class($type=='image') }}"
       href="{{ route('wechat.material.index',['type'=>'image']) }}">图片素材</a>
    <a class="nav-link {{ active_class($type=='news') }}"
       href="{{ route('wechat.material.index',['type'=>'news']) }}">图文素材</a>

</nav>
